import tkinter as tk
from src.gui.trade_gui import TradeGUI
from src.core.trade_processor import TradeProcessor
from src.utils.file_handler import FileHandler

def main():
    # 初始化文件处理器
    file_handler = FileHandler()
    
    # 初始化交易处理器
    trade_processor = TradeProcessor(file_handler)
    
    # 创建GUI
    root = tk.Tk()
    app = TradeGUI(root, trade_processor)
    root.mainloop()

if __name__ == "__main__":
    main() 